package com.sys.basics.service;

import com.sys.basics.entity.SysArea;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * @author: ares
 * @date: 2021-10-08
 * @description: 行政区域表 服务类
 */
public interface SysAreaService extends IService<SysArea> {
    SysArea getTreeByCode(String areaCode);

    List<SysArea> getChildrenTreeByParentCode(String parentCode);

    List<SysArea> getChildrenByParentCode(String areaCode);

    SysArea getTreeByCodeAsLeaf(String areaCode);

    boolean removeSelfAndChildrenByCode(String areaCode);
}
